/*
xp_uart.h
offer xp uart function api
designed by lunanting

--------------------------
2020-06-13 16:51:23
create file
-------------------------
*/
#ifndef __XP_UART_H
#define __XP_UART_H

#include "base_type.h"
#include "../../include/aos/hal/uart.h"




/*******************************function extern*****************************/
extern void xp_uart_recive(uart_dev_t *uart,u8 *buf,int max_rec_len,int *rec_len,int timeout);  //recive data wait forever,time out when recived data
extern void xp_uart_rec_clear(uart_dev_t *uart);    //clear uart rec buffer




#endif
//end of the file
